home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / sheep_po.swf / scripts / frame_34 / DoAction.as
Encoding:
Text File  |  2010-11-09  |  313 b   |  22 lines

  1. if(sheepPocket == 7)
  2. {
  3.    gotoAndStop("gamewin");
  4.    play();
  5. }
  6. else
  7. {
  8.    i = 1;
  9.    while(sheepTotal >= i)
  10.    {
  11.       pocketTest = eval("pocket" + i);
  12.       if(dog.hitTest(pocketTest))
  13.       {
  14.          gameover = 1;
  15.          dogalive = 0;
  16.       }
  17.       i++;
  18.    }
  19.    score--;
  20.    prevFrame();
  21. }
  22.